package strategy.b;

/**
 * 橡皮鸭
 *
 * @author Mike
 *
 */
public class RubberDuck extends Duck {

	public RubberDuck() {
		this.flyBehavior = new FlyNoWay();
		this.quackBehavior = new Squeak();
		this.display();
	}
	
	@Override
	void display() {
		System.out.println("I'm a rubberDuck.");
	}

}
